<?php

require_once(WSB_XTENSION_PATH . 'news/models/DbTable/News/Rowset.php');
require_once(WSB_XTENSION_PATH . 'news/models/DbTable/News/Row.php');

class News_Model_DbTable_News_Table extends WSB_Db_Table
{

    protected $_name 			= 'xt_news';
    protected $_primary 		= 'id';
    protected $_rowsetClass 	= 'News_Model_DbTable_News_Rowset';
    protected $_rowClass 		= 'News_Model_DbTable_News_Row';
    protected $_dependentTables = array();
    protected $_referenceMap    = array(
        'Xtnews' => array(
            'columns'		=> 'xtnewscategory_id',
            'refTableClass'	=> 'News_Model_DbTable_Category_Table',
            'refColumns'	=> 'id'
        )
    );

	protected $_listcols = array('id', 'title', 'date');

}